<?php
/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 2018/11/17
 * Time: 21:24
 */

namespace app\admin\controller;


class Franchisee extends Common
{

    public function query()
    {
        $page = input('page') > 0 ? input('page') : 1;
        $listRows = input('listRows') > 0 ? input('listRows') : 20;
        $db = model("Franchisee");
        $field = "id,title,address,tel,img,time,j,w,adcode,article";
        $data = $db->field($field)->page($page, $listRows)->select();
        $this->rest($data);
    }
}
